package com.bridgeintelligent.tag.mapper;

import com.bridgeintelligent.tag.bulkload.api.StaticCustomerStatus;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * 客群历史规则表持久层
 */
@Mapper
public interface StaticCustomerMapper {

    void add(StaticCustomerStatus entity);
    void updIsMark(@Param("isMark") String isMark,@Param("customersId") String customersId ,@Param("customerAmount") Long customerAmount);
    void updStatus(@Param("customersId") String customersId ,@Param("status") String status,@Param("hiveSql") String hiveSql);
    int existCustomerId(@Param("customerFlag") String customerFlag);
    @Delete("delete from TAG_STATIC_CUSTOMER_STATUS where CUSTOMER_ID = #{cid}")
    void delCustomerId(@Param("cid") String cid);

}